package cn.kgc.bilibili.dao;

import cn.kgc.bilibili.pojo.Danmu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DanmuMapper {


    /**
     * 查询所有弹幕
     * @return
     */
    public List<Danmu> getAllDanmu();

    /**
     * 给某一视频添加弹幕
     * @param danmu
     * @return
     */
    int addDanmu(Danmu danmu);


    /**
     * 根据视频id查询本视频的所有弹幕
     * @param measureId
     * @return
     */

    public List<Danmu> getDanmuByMeasureId(Integer measureId);
}
